package com.zhouwr.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 权限的数据规则
 *
 * @author zhouwr
 * @email 1551541860@qq.com
 * @date 2020-10-08 15:53:25
 */
@Data
@ApiModel(value = "sys_permission_data_rule对象" , description = "权限的数据规则")
@TableName("sys_permission_data_rule")
public class PermissionDataRuleEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    @ApiModelProperty(value = "ID")
    private String id;
    /**
     * 菜单ID
     */
    @ApiModelProperty(value = "菜单ID")
    private String permissionId;
    /**
     * 规则名称
     */
    @ApiModelProperty(value = "规则名称")
    private String ruleName;
    /**
     * 字段
     */
    @ApiModelProperty(value = "字段")
    private String ruleColumn;
    /**
     * 条件
     */
    @ApiModelProperty(value = "条件")
    private String ruleConditions;
    /**
     * 规则值
     */
    @ApiModelProperty(value = "规则值")
    private String ruleValue;
    /**
     * 权限有效状态1有0否
     */
    @ApiModelProperty(value = "权限有效状态1有0否")
    private String status;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     *
     */
    @ApiModelProperty(value = "")
    private String createBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;

}
